import Http from '../http';

export const configIndex = function() {
    return Http.get('/config/index') 
}

export const upconfig = function(config:any) {
    return Http.put('/config/edit',config) 
}


//参数设置
export const getList = function (queryModel: any) {
    return Http.get('/ConfigParm/index', queryModel)
}
export const getEdit = function (id: number) {
    return Http.get('/ConfigParm/AddOrEdit', { id: id })
}
export const postAdd = function (from: any) {
    return Http.post('/ConfigParm/Create', from)
}
export const putEdit = function (from: any) {
    return Http.put('/ConfigParm/Edit', from)
}
export const delOne = function (id: number) {
    return Http.delete('/DictData/Delete', { id: id })
}

